package com.cqrcb.cloud.entity.exception;


/**
 * 异常成员
 *
 * @author 29520
 * @date 2021/04/13
 */
public enum ExceptionMember {
    USER_LEAVE_NO_LIMIT(10000,"用户不存在限制数据"),
    USER_LEAVE_OVERRUN(10001,"用户请假次数超限"),
    SAVE_QUOTA_LOG_ERROR(10002,"记录额度流水时失败"),
    SECOND_GET_QUOTA_ERROR(10003,"第二次从缓存中获取额度时失败"),
    REST_QUOTA_ERROR(10004,"余额信息错误"),
    REST_QUOTA_Not_ENOUGH_ERROR(10005,"额度不足以扣减"),
    RECHARGE_QUOTA_ERROR_3(10006,"回冲锁定类额度时失败，额度已达限定值"),
    RECHARGE_QUOTA_ERROR_4(10007,"回冲扣减类额度时失败，额度已达限定值"),

    ACTIVITY_ID_NULL_ERROR(10008,"活动id为空"),

    CUSTOMUSER_NOT_QUOTA_NULL_ERROR(10009,"当前用户没有额度信息"),
    ACT_NOT_FIND(10011,"当前活动不存在"),
    ACT_INVALIDATION(10012,"当前活动已失效"),

    CUSTOM_EXCEPTION(1,""),
    ;
    private int code;
    private String msg;

    ExceptionMember(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }


    public String getMsg() {
        return msg;
    }

}
